﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Hyt.Core;
using Hyt.Core.Security;
using Hyt.Passport.Models;
using Hyt.Passport.Repositories;

namespace Hyt.Passport.Persist
{
    public class PositionRepository : PassportRepository<Position>, IPositionRepository
    {
        public IQueryable<Position> GetPositions(QueryOption<Position> option = null)
        {
            return this.PersistService.GetQuery(option);
        }

        public Position AddPosition(Position model)
        {
            return this.PersistService.Add(model);
        }

        public void RemovePosition(Position model)
        {
            this.PersistService.Remove(model);
        }

        public void UpdatePosition(Position model)
        {
            this.PersistService.Update(model);
        }

    }
}
